    #序列的应用

    # 1)、序列-索引
from unittest.mock import NonCallableMagicMock


verse = ["春眠不觉晓","处处闻啼鸟","夜来风雨声","花落知多少"]
print(verse[2])     #输出第3个元素
print(verse[-2])    #输出倒数第2个元素

    # 2)、序列-切片
nba = ["蔡徐坤","科比","贾巴尔","张伯伦","约翰逊","科比","邓肯","詹姆斯","伯德","奥尼尔"]
#定义一个列表
print(nba[1:5])     #输出第2个元素到5个元素
print(nba[0:5:2])   #输出倒数第1个、3、5个元素
